package com.skyline.base.model;

import java.io.Serializable;
import java.util.Date;

import com.skyline.base.type.ResourceType;
import com.skyline.common.cache.Cachable;

public class Footprint implements Serializable, Cachable {
	private static final long serialVersionUID = -4202749196953751066L;
	private Long viewerId;
	private String viewerNickname;
	private String viewerPortrait;
	private String viewerEmail;
	private Long resourceId;
	private ResourceType resourceType;
	private Date lastVisitTime;

	public Long getViewerId() {
		return viewerId;
	}

	public void setViewerId(Long viewerId) {
		this.viewerId = viewerId;
	}

	public String getViewerNickname() {
		return viewerNickname;
	}

	public void setViewerNickname(String viewerNickname) {
		this.viewerNickname = viewerNickname;
	}

	public String getViewerPortrait() {
		return viewerPortrait;
	}

	public void setViewerPortrait(String viewerPortrait) {
		this.viewerPortrait = viewerPortrait;
	}

	public String getViewerEmail() {
		return viewerEmail;
	}

	public void setViewerEmail(String viewerEmail) {
		this.viewerEmail = viewerEmail;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public ResourceType getResourceType() {
		return resourceType;
	}

	public void setResourceType(ResourceType resourceType) {
		this.resourceType = resourceType;
	}

	public Date getLastVisitTime() {
		return lastVisitTime;
	}

	public void setLastVisitTime(Date lastVisitTime) {
		this.lastVisitTime = lastVisitTime;
	}

	@Override
	public String getFkId() {
		return resourceType.toString() + resourceId.toString();
	}
}
